#include "MEFUtility.h"

bool CMEFUtility::FindAttributeIndex(const std::vector<std::string>& aAttributeList, const std::string aAttribute, int& aIndex)
{
	bool found = false;

	int size = aAttributeList.size();
	for (int i=0; i < size; i++)
	{
		if (aAttributeList[i] == aAttribute)
		{
			found = true;
			aIndex = i;
		}
	}

	return found;
}

int CMEFUtility::GetIntValue(const std::string aValue)
{
	return atoi(aValue.c_str());
}